import com.hd.openapi.common.ResponseResult;
import com.hd.openapi.common.ResultTable;
import com.hd.openapi.dao.AdminUserMapper;
import com.hd.openapi.dao.MenuMapper;
import com.hd.openapi.dao.RoleMapper;
import com.hd.openapi.dao.UserRoleMapper;
import com.hd.openapi.entity.*;
import com.hd.openapi.servies.*;
import com.hd.openapi.web.cotenollen.cotan;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.ArrayList;
import java.util.List;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath*:springlocalhost.xml")
public class test {
    @Autowired
    private MenuMapper a;
    @Autowired
    private sermenudata ab;
    @Autowired
    public AdminUserMapper au;
    @Autowired
    private pageroleser pr;
    @Autowired
    private RoleMapper rp;
    @Autowired
    private servies ss;
    @Autowired
    private UserRoleMapper ur;

    private cotan at;
    @Autowired
    private appmapperser ap;
    @Autowired
    private rechargeser rr;
    @Autowired
    private infoser in;
    @Autowired
    private tokenser ts;
    @Autowired
    private logser lo;

    @Test
    public void s5(){
        search aa=new search (2,"dafs","afah",null,null);
        int adddata = lo.adddata (aa);
        System.out.println (adddata);
    }
    @Test
    public void s4(){
        UserToken a=new UserToken (2, 21,2,"skks");
        ts.adddata (a);
    }
    @Test
    public void s3(){
        AppInfo a=new AppInfo (12,"add","安徽北部的话","卡卡剧啊", "安静的","21ad",21,"vnkv",12, (short) 1);
        System.out.println (in.addtata (a));
    }
    @Test
    public void s1(){
        System.out.println (ap.getalldata (1, 10, "a", "1"));
    }

    @Test
    public void s2(){
        System.out.println (rr.getall ());
    }









}

